﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using ApiPrototype.Handlers;
using ApiPrototype.Models;
using System.Security.Principal;

namespace ApiPrototype.APIs
{
    [ServiceContract]
    public class DagmenuApi
    {
        [WebGet]
        public ApiResponse<List<DAGMENU>> Get(iphlEntities ctx)
        {
            DateTime now = DateTime.Now.Date;
            return new ApiResponse<List<DAGMENU>>(ctx.DAGMENU.Where(d => d.DAG_DATUM >= now).ToList());
        }
    }
}